//
//  AgentApi.h
//  IVCS
//
//  Created by nfl on 2022/2/28.
//  Copyright © 2022 zco user. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <IVCS/ZealcommNetWorkTool.h>
#import <IVCS/CallBackObject.h>
#import <IVCS/MediaStreamSettingOptions.h>
#import <IVCS/ZcoModelUserInfo.h>
#import "models/ZcoModelScenarioBrief.h"
#import "models/ZcoModelScenariosEnable.h"

NS_ASSUME_NONNULL_BEGIN

@interface AgentApi : NSObject

@property (copy , nonatomic)NSString *baseUrl ;
@property (copy , nonatomic)NSString *token;

declareSingleInstance(Agent)

/// 访客登录
/// @param url 登录的url
/// @param name 登录名
/// @param pwd 登录密码
/// @param org 访客所属机构
/// @param complete 结果回调
-(void)loginWithUrl:(nonnull NSString *)url
               name:(nonnull NSString*)name
           password:(nonnull NSString*)pwd
           org:(nonnull NSString*)org
           complete:(completeBlock)complete;

/// 根据坐席名称获取已开启的场景列表
-(void)getBusinessScenariosByAgentName:(NSString *)agentName onSuccess:(void (^)(ZcoModelScenariosEnable * _Nonnull))onSuccess onFailure:(void (^)(NSError * _Nonnull))onFailure;

/// 获取可用的场景列表
- (void)getBusinessScenarios:(void (^)(NSMutableArray<ZcoModelScenarioBrief *> * _Nonnull))onSuccess onFailure:(void (^)(NSError * _Nonnull))onFailure;

@end

NS_ASSUME_NONNULL_END
